import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";


const routes:Array<RouteRecordRaw> =[
    {
        path:"/",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/Register",
        name:"Register",
        component:()=>import('../view/User/Register.vue')
    },
    {
        path:"/Ulogin",
        name:"Ulogin",
        component:()=>import('../view/User/Ulogin.vue')
    },
    {
        path:"/UserRegister/:Uid",
        name:"UserRegister",
        component:()=>import('../view/User/UserRegister.vue')
    },
    {
        path:"/AddInvest",
        name:"AddInvest",
        component:()=>import('../view/Invest/AddInvest.vue')
    },
    {
        path:"/ShowInvest",
        name:"ShowInvest",
        component:()=>import('../view/Invest/ShowInvest.vue')
    },
    {
        path:"/EditInvest/:Iid",
        name:"EditInvest",
        component:()=>import('../view/Invest/EditInvest.vue')
    },
    {
        path:"/AddFinanInfo",
        name:"AddFinanInfo",
        component:()=>import('../view/Finan/AddFinanInfo.vue')
    },
    {
        path:"/ShowFinanInfo",
        name:"ShowFinanInfo",
        component:()=>import('../view/Finan/ShowFinanInfo.vue')
    },
    {
        path:"/UpdateFinanInfo",
        name:"UpdateFinanInfo",
        component:()=>import('../view/Finan/UpdateFinanInfo.vue')
    },
    {
        path:"/AddBorrow",
        component:()=>import('../view/Borrow/AddBorrow.vue')
    },
    {
        path:"/ShowBorrow",
        component:()=>import('../view/Borrow/ShowBorrow.vue')
    },
    {
        path:"/UpdateBorrow",
        component:()=>import('../view/Borrow/UpdateBorrow.vue')
    },
    {
        path:"/ShowUserInvest",
        component:()=>import('../view/Invest/ShowUserInvest.vue')
    },
    {
        path:"/UserAddInvest",
        component:()=>import('../view/Invest/UserAddInvest.vue')
    },
    {
        path:"/ShowAdminInvestInfo",
        component:()=>import('../view/Invest/ShowAdminInvestInfo.vue')
    },
    {
        path:"/SelectInvestContext",
        component:()=>import('../view/Invest/SelectInvestContext.vue')
    },
    {
        path:"/ShowUserFinan",
        component:()=>import('../view/Finan/ShowUserFinan.vue')
    },
    {
        path:"/BuyUserFinan",
        component:()=>import('../view/Finan/BuyUserFinan.vue')
    },
    {
        path:"/ShowAdminFinan",
        component:()=>import('../view/Finan/ShowAdminFinan.vue')
    },
    {
        path:"/SelectUserFinan",
        component:()=>import('../view/Finan/SelectUserFinan.vue')
    },
    {
        path:"/ShowUserBorrow",
        component:()=>import('../view/Borrow/ShowUserBorrow.vue')
    },
    {
        path:"/AddUserBorrow",
        component:()=>import('../view/Borrow/AddUserBorrow.vue')
    },
    {
        path:"/ShowAdminBorrow",
        component:()=>import('../view/Borrow/ShowAdminBorrow.vue')
    },
    {
        path:"/SelectUserById",
        component:()=>import('../view/Borrow/SelectUserById.vue')
    }
]

//创建路由实例
const route = createRouter(
    {
        history:createWebHistory(),
        routes
    }
)

//导出路由实例
export default route

